{extend name="AdminEx/index" /}

{block name="main"}
<!-- page heading start-->
<div class="page-heading">
    <h3>
        {$title}
    </h3>
    <ul class="breadcrumb">
        <li>
            <a href="#">Form</a>
        </li>
        <li class="active"> Form Validation</li>
    </ul>
</div>
<!-- page heading end-->

<!--body wrapper start-->
<div class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <section class="panel">
                <header class="panel-heading">
                    添加分类
                </header>
                <div class="panel-body">
                    <form action="{:url('admin/Category/save')}" method="post" role="form"
                          class="form-horizontal adminex-form">
                        {if !empty($id)}<input type="hidden" name="id" value="{$id}">
                        {/if}

                        <div class="form-group has-success">
                            <label class="col-lg-2 control-label">出版社名</label>
                            <div class="col-lg-8    ">
                                <input name="name" type="text" placeholder="" id="f-name" class="form-control">
                            </div>
                        </div>


                        <label class="checkbox-inline">
                            <input type="checkbox" id="inlineCheckbox1" value="option1"> 不显示
                        </label>
                        <label class="checkbox-inline">
                            <input type="checkbox" id="inlineCheckbox2" value="option2"> 显示
                        </label>



                        <div class="form-group">
                            <div class="col-lg-offset-2 col-lg-10">
                                <button class="btn btn-primary" type="submit">Submit</button>
                            </div>
                        </div>
                    </form>
                </div>
            </section>
        </div>
    </div>
    <div class="row">

        {/block}